﻿using FlashPay.Entity.Response.User;
using FlashPay.Service.Interface;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace FlashPay.Admin.Controllers
{
    public class UserRoleController : BaseController
    {
        private readonly UserRoleService _userRoleService;
        public UserRoleController(IAuthenticate<TicketResponse> _manage, IHttpContextAccessor _accessor, UserRoleService userRoleService) : base(_manage, _accessor)
        {
            _userRoleService = userRoleService;
        }

        //根据用户ID获取角色信息
        public JsonResult GetRoleByUID(int uID)
        {
            var list = _userRoleService.GetRoleByUID(uID);
            return Json(list);
        }
    }
}